package com.nuanshui.heatedloan.baseservice.model;

import java.util.Date;

public class GoodsAttrItem {

	
	private String postId;//商品id
	private String postAttrId;//商品属性id
	private String attrValue;//商品属性值
	private  Date createdAt;//创建时间
	private String name;//属性名称
	
	public String attrName;//属性名称
	
	private String des;//商品属性描述信息
	
	private String unit;//参数单位
	
	
	
	
	
	
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getDes() {
		return des;
	}
	public void setDes(String des) {
		this.des = des;
	}
	public String getAttrName() {
		return name;
	}
	public void setAttrName(String attrName) {
		this.attrName = attrName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPostId() {
		return postId;
	}
	public void setPostId(String postId) {
		this.postId = postId;
	}
	public String getPostAttrId() {
		return postAttrId;
	}
	public void setPostAttrId(String postAttrId) {
		this.postAttrId = postAttrId;
	}
	public String getAttrValue() {
		return attrValue;
	}
	public void setAttrValue(String attrValue) {
		this.attrValue = attrValue;
	}
	public Date getCreatedAt() {
		return createdAt;
	}
	public void setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((attrValue == null) ? 0 : attrValue.hashCode());
		result = prime * result
				+ ((postAttrId == null) ? 0 : postAttrId.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		GoodsAttrItem other = (GoodsAttrItem) obj;
		if (attrValue == null) {
			if (other.attrValue != null)
				return false;
		} else if (!attrValue.equals(other.attrValue))
			return false;
		if (postAttrId == null) {
			if (other.postAttrId != null)
				return false;
		} else if (!postAttrId.equals(other.postAttrId))
			return false;
		return true;
	}
	
	
	
	


}
